package com.dearbinge.data.service.impl.orderDatailTable;

import com.dearbinge.data.api.orderDetailTable.OrderDetailTableService;
import com.dearbinge.data.api.orderTable.OrderTableService;
import com.dearbinge.data.dao.OrderDetailTableMapper;
import com.dearbinge.data.dao.OrderTableMapper;
import com.dearbinge.data.pojo.orderDetailTable.OrderDetailTable;
import com.dearbinge.data.pojo.orderTable.OrderTable;
import com.dearbinge.utils.PageResult;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service(value = "orderDetailTableService")
public class OrderDeatilTableServiceImpl implements OrderDetailTableService {

    @Autowired
    private OrderDetailTableMapper orderDetailTableMapper;

	@Override
	public Integer update(OrderDetailTable orderDetailTable) {
		Integer dataCode = orderDetailTableMapper.update(orderDetailTable);
        return dataCode;
	}

	@Override
	public Integer insert(OrderDetailTable orderDetailTable) {
		 Integer dataCode = orderDetailTableMapper.insert(orderDetailTable);
		 return dataCode;
	}

	@Override
	public Integer delete(Integer id) {
      Integer dataCode = orderDetailTableMapper.delete(id);
      return dataCode;
	}

	@Override
	public OrderDetailTable getById(String isThumbsId) {
		OrderDetailTable byId = orderDetailTableMapper.getById(isThumbsId);
		return byId;
	}


}
